<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>opennars: nars.inference.CompositionalRules.introVarOuter</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">opennars
   &#160;<span id="projectnumber">1.5.5</span>
   </div>
   <div id="projectbrief">1.5-ish</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="../../namespaces.html"><span>Packages</span></a></li>
      <li><a href="../../annotated.html"><span>Classes</span></a></li>
      <li><a href="../../files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('d8/d79/classnars_1_1inference_1_1CompositionalRules_a4e01a00f3a024ecdbd3949fefb803dae.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="contents">
<a class="anchor" id="a4e01a00f3a024ecdbd3949fefb803dae"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void nars.inference.CompositionalRules.introVarOuter </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d1/d5e/classnars_1_1language_1_1Statement.html">Statement</a>&#160;</td>
          <td class="paramname"><em>taskContent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d1/d5e/classnars_1_1language_1_1Statement.html">Statement</a>&#160;</td>
          <td class="paramname"><em>beliefContent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d8/df4/classnars_1_1storage_1_1Memory.html">Memory</a>&#160;</td>
          <td class="paramname"><em>memory</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Introduce a dependent variable in an outer-layer conjunction. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">taskContent</td><td>The first premise &lt;M --&gt; S&gt; </td></tr>
    <tr><td class="paramname">beliefContent</td><td>The second premise &lt;M --&gt; P&gt; </td></tr>
    <tr><td class="paramname">index</td><td>The location of the shared term: 0 for subject, 1 for predicate </td></tr>
    <tr><td class="paramname">memory</td><td>Reference to the memory </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="../../d4/d15/CompositionalRules_8java_source.html#l00345">345</a> of file <a class="el" href="../../d4/d15/CompositionalRules_8java_source.html">CompositionalRules.java</a>.</p>

<p>References <a class="el" href="../../df/d29/TruthFunctions_8java_source.html#l00255">nars.inference.TruthFunctions.comparison()</a>, <a class="el" href="../../de/d4e/BudgetFunctions_8java_source.html#l00290">nars.inference.BudgetFunctions.compoundForward()</a>, <a class="el" href="../../db/d0c/Memory_8java_source.html#l00280">nars.storage.Memory.doublePremiseTask()</a>, <a class="el" href="../../db/d0c/Memory_8java_source.html#l00647">nars.storage.Memory.getCurrentBelief()</a>, <a class="el" href="../../db/d0c/Memory_8java_source.html#l00625">nars.storage.Memory.getCurrentTask()</a>, <a class="el" href="../../d2/d44/Statement_8java_source.html#l00237">nars.language.Statement.getPredicate()</a>, <a class="el" href="../../d6/d10/Task_8java_source.html#l00099">nars.entity.Task.getSentence()</a>, <a class="el" href="../../d2/d44/Statement_8java_source.html#l00229">nars.language.Statement.getSubject()</a>, <a class="el" href="../../da/d1c/Sentence_8java_source.html#l00165">nars.entity.Sentence.getTruth()</a>, <a class="el" href="../../df/d29/TruthFunctions_8java_source.html#l00221">nars.inference.TruthFunctions.induction()</a>, <a class="el" href="../../df/d29/TruthFunctions_8java_source.html#l00374">nars.inference.TruthFunctions.intersection()</a>, <a class="el" href="../../d3/d1a/Implication_8java_source.html#l00067">nars.language.Implication.make()</a>, <a class="el" href="../../d3/dcc/Equivalence_8java_source.html#l00067">nars.language.Equivalence.make()</a>, <a class="el" href="../../d0/d17/Inheritance_8java_source.html#l00068">nars.language.Inheritance.make()</a>, and <a class="el" href="../../d6/d2f/Conjunction_8java_source.html#l00083">nars.language.Conjunction.make()</a>.</p>

<p>Referenced by <a class="el" href="../../d4/d15/CompositionalRules_8java_source.html#l00052">nars.inference.CompositionalRules.composeCompound()</a>.</p>
<div class="fragment"><div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;                                                                                                                {</div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;        <a class="code" href="../../d3/db8/classnars_1_1entity_1_1TruthValue.html">TruthValue</a> truthT = memory.<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_a26eda4f00b333b706b4e3d069fdf1508.html#a26eda4f00b333b706b4e3d069fdf1508">getCurrentTask</a>().<a class="code" href="../../dc/ddc/classnars_1_1entity_1_1Task_ab140cb553a6cf40b07093d1df283567f.html#ab140cb553a6cf40b07093d1df283567f">getSentence</a>().<a class="code" href="../../d6/d25/classnars_1_1entity_1_1Sentence_a9f69b4fef64c81abad21404946cd41f9.html#a9f69b4fef64c81abad21404946cd41f9">getTruth</a>();</div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;        <a class="code" href="../../d3/db8/classnars_1_1entity_1_1TruthValue.html">TruthValue</a> truthB = memory.<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_aae366ea198c2340fef786120d5c2163b.html#aae366ea198c2340fef786120d5c2163b">getCurrentBelief</a>().<a class="code" href="../../d6/d25/classnars_1_1entity_1_1Sentence_a9f69b4fef64c81abad21404946cd41f9.html#a9f69b4fef64c81abad21404946cd41f9">getTruth</a>();</div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;        <a class="code" href="../../de/da5/classnars_1_1language_1_1Variable.html">Variable</a> varInd = <span class="keyword">new</span> <a class="code" href="../../de/da5/classnars_1_1language_1_1Variable.html">Variable</a>(<span class="stringliteral">&quot;$varInd1&quot;</span>);</div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;        <a class="code" href="../../de/da5/classnars_1_1language_1_1Variable.html">Variable</a> varInd2 = <span class="keyword">new</span> <a class="code" href="../../de/da5/classnars_1_1language_1_1Variable.html">Variable</a>(<span class="stringliteral">&quot;$varInd2&quot;</span>);</div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;        <a class="code" href="../../d8/db8/classnars_1_1language_1_1Term.html">Term</a> term11, term12, term21, term22, commonTerm;</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;        HashMap&lt;Term, Term&gt; subs = <span class="keyword">new</span> HashMap&lt;Term, Term&gt;();</div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;        <span class="keywordflow">if</span> (index == 0) {</div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;            term11 = varInd;</div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;            term21 = varInd;</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;            term12 = taskContent.<a class="code" href="../../d1/d5e/classnars_1_1language_1_1Statement_ababe6155e2f78e769f76493317e118e0.html#ababe6155e2f78e769f76493317e118e0">getPredicate</a>();</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;            term22 = beliefContent.<a class="code" href="../../d1/d5e/classnars_1_1language_1_1Statement_ababe6155e2f78e769f76493317e118e0.html#ababe6155e2f78e769f76493317e118e0">getPredicate</a>();</div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;            <span class="keywordflow">if</span> ((term12 instanceof <a class="code" href="../../db/dbb/classnars_1_1language_1_1ImageExt.html">ImageExt</a>) &amp;&amp; (term22 instanceof ImageExt)) {</div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;                commonTerm = ((ImageExt) term12).getTheOtherComponent();</div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;                <span class="keywordflow">if</span> ((commonTerm == null) || !((ImageExt) term22).containTerm(commonTerm)) {</div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;                    commonTerm = ((ImageExt) term22).getTheOtherComponent();</div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;                    <span class="keywordflow">if</span> ((commonTerm == null) || !((ImageExt) term12).containTerm(commonTerm)) {</div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;                        commonTerm = null;</div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;                    }</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;                }</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;                <span class="keywordflow">if</span> (commonTerm != null) {</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;                    subs.put(commonTerm, varInd2);</div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;                    ((ImageExt) term12).applySubstitute(subs);</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;                    ((ImageExt) term22).applySubstitute(subs);</div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;                }</div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;            }</div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;            term11 = taskContent.<a class="code" href="../../d1/d5e/classnars_1_1language_1_1Statement_ace4f80751d303c613e467163913bebf5.html#ace4f80751d303c613e467163913bebf5">getSubject</a>();</div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;            term21 = beliefContent.<a class="code" href="../../d1/d5e/classnars_1_1language_1_1Statement_ace4f80751d303c613e467163913bebf5.html#ace4f80751d303c613e467163913bebf5">getSubject</a>();</div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;            term12 = varInd;</div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;            term22 = varInd;</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;            <span class="keywordflow">if</span> ((term11 instanceof <a class="code" href="../../df/de3/classnars_1_1language_1_1ImageInt.html">ImageInt</a>) &amp;&amp; (term21 instanceof ImageInt)) {</div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;                commonTerm = ((ImageInt) term11).getTheOtherComponent();</div>
<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;                <span class="keywordflow">if</span> ((commonTerm == null) || !((ImageInt) term21).containTerm(commonTerm)) {</div>
<div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;                    commonTerm = ((ImageInt) term21).getTheOtherComponent();</div>
<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;                    <span class="keywordflow">if</span> ((commonTerm == null) || !((ImageExt) term11).containTerm(commonTerm)) {</div>
<div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;                        commonTerm = null;</div>
<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;                    }</div>
<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;                }</div>
<div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;                <span class="keywordflow">if</span> (commonTerm != null) {</div>
<div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;                    subs.put(commonTerm, varInd2);</div>
<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;                    ((ImageInt) term11).applySubstitute(subs);</div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;                    ((ImageInt) term21).applySubstitute(subs);</div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;                }</div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;            }</div>
<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;        }</div>
<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;        <a class="code" href="../../d1/d5e/classnars_1_1language_1_1Statement.html">Statement</a> state1 = <a class="code" href="../../d0/df3/classnars_1_1language_1_1Inheritance.html">Inheritance</a>.<a class="code" href="../../d0/df3/classnars_1_1language_1_1Inheritance_a5ccaf18d33e722f438944debb2757b34.html#a5ccaf18d33e722f438944debb2757b34">make</a>(term11, term12, memory);</div>
<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;        <a class="code" href="../../d1/d5e/classnars_1_1language_1_1Statement.html">Statement</a> state2 = <a class="code" href="../../d0/df3/classnars_1_1language_1_1Inheritance.html">Inheritance</a>.<a class="code" href="../../d0/df3/classnars_1_1language_1_1Inheritance_a5ccaf18d33e722f438944debb2757b34.html#a5ccaf18d33e722f438944debb2757b34">make</a>(term21, term22, memory);</div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;        <a class="code" href="../../d8/db8/classnars_1_1language_1_1Term.html">Term</a> content = <a class="code" href="../../da/db6/classnars_1_1language_1_1Implication.html">Implication</a>.<a class="code" href="../../da/db6/classnars_1_1language_1_1Implication_a9af204cfe23c573d9987f27f8f8c7d8f.html#a9af204cfe23c573d9987f27f8f8c7d8f">make</a>(state1, state2, memory);</div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;        <a class="code" href="../../d3/db8/classnars_1_1entity_1_1TruthValue.html">TruthValue</a> truth = TruthFunctions.induction(truthT, truthB);</div>
<div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;        <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue.html">BudgetValue</a> budget = <a class="code" href="../../d7/d11/classnars_1_1inference_1_1BudgetFunctions.html">BudgetFunctions</a>.<a class="code" href="../../d7/d11/classnars_1_1inference_1_1BudgetFunctions_a74ebb7970c0561c3407df43a68bbfe84.html#a74ebb7970c0561c3407df43a68bbfe84">compoundForward</a>(truth, content, memory);</div>
<div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;        memory.<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_a077b38e451ff6e4217bdc2ff0bb08e70.html#a077b38e451ff6e4217bdc2ff0bb08e70">doublePremiseTask</a>(content, truth, budget);</div>
<div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;        content = <a class="code" href="../../da/db6/classnars_1_1language_1_1Implication.html">Implication</a>.<a class="code" href="../../da/db6/classnars_1_1language_1_1Implication_a9af204cfe23c573d9987f27f8f8c7d8f.html#a9af204cfe23c573d9987f27f8f8c7d8f">make</a>(state2, state1, memory);</div>
<div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;        truth = TruthFunctions.induction(truthB, truthT);</div>
<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;        budget = <a class="code" href="../../d7/d11/classnars_1_1inference_1_1BudgetFunctions.html">BudgetFunctions</a>.<a class="code" href="../../d7/d11/classnars_1_1inference_1_1BudgetFunctions_a74ebb7970c0561c3407df43a68bbfe84.html#a74ebb7970c0561c3407df43a68bbfe84">compoundForward</a>(truth, content, memory);</div>
<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;        memory.<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_a077b38e451ff6e4217bdc2ff0bb08e70.html#a077b38e451ff6e4217bdc2ff0bb08e70">doublePremiseTask</a>(content, truth, budget);</div>
<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;        content = <a class="code" href="../../d1/d8b/classnars_1_1language_1_1Equivalence.html">Equivalence</a>.<a class="code" href="../../d1/d8b/classnars_1_1language_1_1Equivalence_ad5069483330bc875fbb48a1e992f7bf7.html#ad5069483330bc875fbb48a1e992f7bf7">make</a>(state1, state2, memory);</div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;        truth = TruthFunctions.comparison(truthT, truthB);</div>
<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;        budget = <a class="code" href="../../d7/d11/classnars_1_1inference_1_1BudgetFunctions.html">BudgetFunctions</a>.<a class="code" href="../../d7/d11/classnars_1_1inference_1_1BudgetFunctions_a74ebb7970c0561c3407df43a68bbfe84.html#a74ebb7970c0561c3407df43a68bbfe84">compoundForward</a>(truth, content, memory);</div>
<div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;        memory.<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_a077b38e451ff6e4217bdc2ff0bb08e70.html#a077b38e451ff6e4217bdc2ff0bb08e70">doublePremiseTask</a>(content, truth, budget);</div>
<div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;        <a class="code" href="../../de/da5/classnars_1_1language_1_1Variable.html">Variable</a> varDep = <span class="keyword">new</span> <a class="code" href="../../de/da5/classnars_1_1language_1_1Variable.html">Variable</a>(<span class="stringliteral">&quot;#varDep&quot;</span>);</div>
<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;        <span class="keywordflow">if</span> (index == 0) {</div>
<div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;            state1 = <a class="code" href="../../d0/df3/classnars_1_1language_1_1Inheritance.html">Inheritance</a>.<a class="code" href="../../d0/df3/classnars_1_1language_1_1Inheritance_a5ccaf18d33e722f438944debb2757b34.html#a5ccaf18d33e722f438944debb2757b34">make</a>(varDep, taskContent.<a class="code" href="../../d1/d5e/classnars_1_1language_1_1Statement_ababe6155e2f78e769f76493317e118e0.html#ababe6155e2f78e769f76493317e118e0">getPredicate</a>(), memory);</div>
<div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;            state2 = <a class="code" href="../../d0/df3/classnars_1_1language_1_1Inheritance.html">Inheritance</a>.<a class="code" href="../../d0/df3/classnars_1_1language_1_1Inheritance_a5ccaf18d33e722f438944debb2757b34.html#a5ccaf18d33e722f438944debb2757b34">make</a>(varDep, beliefContent.<a class="code" href="../../d1/d5e/classnars_1_1language_1_1Statement_ababe6155e2f78e769f76493317e118e0.html#ababe6155e2f78e769f76493317e118e0">getPredicate</a>(), memory);</div>
<div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;            state1 = <a class="code" href="../../d0/df3/classnars_1_1language_1_1Inheritance.html">Inheritance</a>.<a class="code" href="../../d0/df3/classnars_1_1language_1_1Inheritance_a5ccaf18d33e722f438944debb2757b34.html#a5ccaf18d33e722f438944debb2757b34">make</a>(taskContent.<a class="code" href="../../d1/d5e/classnars_1_1language_1_1Statement_ace4f80751d303c613e467163913bebf5.html#ace4f80751d303c613e467163913bebf5">getSubject</a>(), varDep, memory);</div>
<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;            state2 = <a class="code" href="../../d0/df3/classnars_1_1language_1_1Inheritance.html">Inheritance</a>.<a class="code" href="../../d0/df3/classnars_1_1language_1_1Inheritance_a5ccaf18d33e722f438944debb2757b34.html#a5ccaf18d33e722f438944debb2757b34">make</a>(beliefContent.<a class="code" href="../../d1/d5e/classnars_1_1language_1_1Statement_ace4f80751d303c613e467163913bebf5.html#ace4f80751d303c613e467163913bebf5">getSubject</a>(), varDep, memory);</div>
<div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;        }</div>
<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;        content = <a class="code" href="../../d6/d98/classnars_1_1language_1_1Conjunction.html">Conjunction</a>.<a class="code" href="../../d6/d98/classnars_1_1language_1_1Conjunction_af8d44d1d196f833eefa37078a94b3ed3.html#af8d44d1d196f833eefa37078a94b3ed3">make</a>(state1, state2, memory);</div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;        truth = TruthFunctions.intersection(truthT, truthB);</div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;        budget = <a class="code" href="../../d7/d11/classnars_1_1inference_1_1BudgetFunctions.html">BudgetFunctions</a>.<a class="code" href="../../d7/d11/classnars_1_1inference_1_1BudgetFunctions_a74ebb7970c0561c3407df43a68bbfe84.html#a74ebb7970c0561c3407df43a68bbfe84">compoundForward</a>(truth, content, memory);</div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;        memory.<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_a077b38e451ff6e4217bdc2ff0bb08e70.html#a077b38e451ff6e4217bdc2ff0bb08e70">doublePremiseTask</a>(content, truth, budget, <span class="keyword">false</span>);</div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;    }</div>
<div class="ttc" id="classnars_1_1entity_1_1Sentence_a9f69b4fef64c81abad21404946cd41f9_html_a9f69b4fef64c81abad21404946cd41f9"><div class="ttname"><a href="../../d6/d25/classnars_1_1entity_1_1Sentence_a9f69b4fef64c81abad21404946cd41f9.html#a9f69b4fef64c81abad21404946cd41f9">nars.entity.Sentence.getTruth</a></div><div class="ttdeci">TruthValue getTruth()</div><div class="ttdoc">Get the truth value of the sentence. </div><div class="ttdef"><b>Definition:</b> <a href="../../da/d1c/Sentence_8java_source.html#l00165">Sentence.java:165</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Conjunction_html"><div class="ttname"><a href="../../d6/d98/classnars_1_1language_1_1Conjunction.html">nars.language.Conjunction</a></div><div class="ttdoc">Conjunction of statements. </div><div class="ttdef"><b>Definition:</b> <a href="../../d6/d2f/Conjunction_8java_source.html#l00031">Conjunction.java:31</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Statement_ababe6155e2f78e769f76493317e118e0_html_ababe6155e2f78e769f76493317e118e0"><div class="ttname"><a href="../../d1/d5e/classnars_1_1language_1_1Statement_ababe6155e2f78e769f76493317e118e0.html#ababe6155e2f78e769f76493317e118e0">nars.language.Statement.getPredicate</a></div><div class="ttdeci">Term getPredicate()</div><div class="ttdoc">Return the second component of the statement. </div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d44/Statement_8java_source.html#l00237">Statement.java:237</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Inheritance_html"><div class="ttname"><a href="../../d0/df3/classnars_1_1language_1_1Inheritance.html">nars.language.Inheritance</a></div><div class="ttdoc">A Statement about an Inheritance relation. </div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d17/Inheritance_8java_source.html#l00031">Inheritance.java:31</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Implication_a9af204cfe23c573d9987f27f8f8c7d8f_html_a9af204cfe23c573d9987f27f8f8c7d8f"><div class="ttname"><a href="../../da/db6/classnars_1_1language_1_1Implication_a9af204cfe23c573d9987f27f8f8c7d8f.html#a9af204cfe23c573d9987f27f8f8c7d8f">nars.language.Implication.make</a></div><div class="ttdeci">static Implication make(Term subject, Term predicate, Memory memory)</div><div class="ttdoc">Try to make a new compound from two components. </div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d1a/Implication_8java_source.html#l00067">Implication.java:67</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1ImageExt_html"><div class="ttname"><a href="../../db/dbb/classnars_1_1language_1_1ImageExt.html">nars.language.ImageExt</a></div><div class="ttdoc">An extension image. </div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d62/ImageExt_8java_source.html#l00035">ImageExt.java:35</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Inheritance_a5ccaf18d33e722f438944debb2757b34_html_a5ccaf18d33e722f438944debb2757b34"><div class="ttname"><a href="../../d0/df3/classnars_1_1language_1_1Inheritance_a5ccaf18d33e722f438944debb2757b34.html#a5ccaf18d33e722f438944debb2757b34">nars.language.Inheritance.make</a></div><div class="ttdeci">static Inheritance make(Term subject, Term predicate, Memory memory)</div><div class="ttdoc">Try to make a new compound from two components. </div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d17/Inheritance_8java_source.html#l00068">Inheritance.java:68</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_a26eda4f00b333b706b4e3d069fdf1508_html_a26eda4f00b333b706b4e3d069fdf1508"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_a26eda4f00b333b706b4e3d069fdf1508.html#a26eda4f00b333b706b4e3d069fdf1508">nars.storage.Memory.getCurrentTask</a></div><div class="ttdeci">Task getCurrentTask()</div><div class="ttdoc">The selected Task. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00625">Memory.java:625</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Statement_html"><div class="ttname"><a href="../../d1/d5e/classnars_1_1language_1_1Statement.html">nars.language.Statement</a></div><div class="ttdoc">A statement is a compound term, consisting of a subject, a predicate, and a relation symbol in betwee...</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d44/Statement_8java_source.html#l00033">Statement.java:33</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Task_ab140cb553a6cf40b07093d1df283567f_html_ab140cb553a6cf40b07093d1df283567f"><div class="ttname"><a href="../../dc/ddc/classnars_1_1entity_1_1Task_ab140cb553a6cf40b07093d1df283567f.html#ab140cb553a6cf40b07093d1df283567f">nars.entity.Task.getSentence</a></div><div class="ttdeci">Sentence getSentence()</div><div class="ttdoc">Get the sentence. </div><div class="ttdef"><b>Definition:</b> <a href="../../d6/d10/Task_8java_source.html#l00099">Task.java:99</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1ImageInt_html"><div class="ttname"><a href="../../df/de3/classnars_1_1language_1_1ImageInt.html">nars.language.ImageInt</a></div><div class="ttdoc">An intension image. </div><div class="ttdef"><b>Definition:</b> <a href="../../d7/d9f/ImageInt_8java_source.html#l00035">ImageInt.java:35</a></div></div>
<div class="ttc" id="classnars_1_1inference_1_1BudgetFunctions_a74ebb7970c0561c3407df43a68bbfe84_html_a74ebb7970c0561c3407df43a68bbfe84"><div class="ttname"><a href="../../d7/d11/classnars_1_1inference_1_1BudgetFunctions_a74ebb7970c0561c3407df43a68bbfe84.html#a74ebb7970c0561c3407df43a68bbfe84">nars.inference.BudgetFunctions.compoundForward</a></div><div class="ttdeci">static BudgetValue compoundForward(TruthValue truth, Term content, Memory memory)</div><div class="ttdoc">Forward inference with CompoundTerm conclusion. </div><div class="ttdef"><b>Definition:</b> <a href="../../de/d4e/BudgetFunctions_8java_source.html#l00290">BudgetFunctions.java:290</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Conjunction_af8d44d1d196f833eefa37078a94b3ed3_html_af8d44d1d196f833eefa37078a94b3ed3"><div class="ttname"><a href="../../d6/d98/classnars_1_1language_1_1Conjunction_af8d44d1d196f833eefa37078a94b3ed3.html#af8d44d1d196f833eefa37078a94b3ed3">nars.language.Conjunction.make</a></div><div class="ttdeci">static Term make(ArrayList&lt; Term &gt; argList, Memory memory)</div><div class="ttdoc">Try to make a new compound from a list of components. </div><div class="ttdef"><b>Definition:</b> <a href="../../d6/d2f/Conjunction_8java_source.html#l00083">Conjunction.java:83</a></div></div>
<div class="ttc" id="classnars_1_1inference_1_1BudgetFunctions_html"><div class="ttname"><a href="../../d7/d11/classnars_1_1inference_1_1BudgetFunctions.html">nars.inference.BudgetFunctions</a></div><div class="ttdoc">Budget functions for resources allocation. </div><div class="ttdef"><b>Definition:</b> <a href="../../de/d4e/BudgetFunctions_8java_source.html#l00031">BudgetFunctions.java:31</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1TruthValue_html"><div class="ttname"><a href="../../d3/db8/classnars_1_1entity_1_1TruthValue.html">nars.entity.TruthValue</a></div><div class="ttdoc">Frequency and confidence. </div><div class="ttdef"><b>Definition:</b> <a href="../../de/de7/TruthValue_8java_source.html#l00028">TruthValue.java:28</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Equivalence_ad5069483330bc875fbb48a1e992f7bf7_html_ad5069483330bc875fbb48a1e992f7bf7"><div class="ttname"><a href="../../d1/d8b/classnars_1_1language_1_1Equivalence_ad5069483330bc875fbb48a1e992f7bf7.html#ad5069483330bc875fbb48a1e992f7bf7">nars.language.Equivalence.make</a></div><div class="ttdeci">static Equivalence make(Term subject, Term predicate, Memory memory)</div><div class="ttdoc">Try to make a new compound from two components. </div><div class="ttdef"><b>Definition:</b> <a href="../../d3/dcc/Equivalence_8java_source.html#l00067">Equivalence.java:67</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Equivalence_html"><div class="ttname"><a href="../../d1/d8b/classnars_1_1language_1_1Equivalence.html">nars.language.Equivalence</a></div><div class="ttdoc">A Statement about an Equivalence relation. </div><div class="ttdef"><b>Definition:</b> <a href="../../d3/dcc/Equivalence_8java_source.html#l00031">Equivalence.java:31</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Term_html"><div class="ttname"><a href="../../d8/db8/classnars_1_1language_1_1Term.html">nars.language.Term</a></div><div class="ttdoc">Term is the basic component of Narsese, and the object of processing in NARS. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/df2/Term_8java_source.html#l00040">Term.java:40</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_aae366ea198c2340fef786120d5c2163b_html_aae366ea198c2340fef786120d5c2163b"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_aae366ea198c2340fef786120d5c2163b.html#aae366ea198c2340fef786120d5c2163b">nars.storage.Memory.getCurrentBelief</a></div><div class="ttdeci">Sentence getCurrentBelief()</div><div class="ttdoc">The selected belief. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00647">Memory.java:647</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_a077b38e451ff6e4217bdc2ff0bb08e70_html_a077b38e451ff6e4217bdc2ff0bb08e70"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_a077b38e451ff6e4217bdc2ff0bb08e70.html#a077b38e451ff6e4217bdc2ff0bb08e70">nars.storage.Memory.doublePremiseTask</a></div><div class="ttdeci">void doublePremiseTask(Term newContent, TruthValue newTruth, BudgetValue newBudget)</div><div class="ttdoc">Shared final operations by all double-premise rules, called from the rules except StructuralRules...</div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00280">Memory.java:280</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Variable_html"><div class="ttname"><a href="../../de/da5/classnars_1_1language_1_1Variable.html">nars.language.Variable</a></div><div class="ttdoc">A variable term, which does not correspond to a concept. </div><div class="ttdef"><b>Definition:</b> <a href="../../d2/de0/Variable_8java_source.html#l00030">Variable.java:30</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_html"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue.html">nars.entity.BudgetValue</a></div><div class="ttdoc">A triple of priority (current), durability (decay), and quality (long-term average). </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00031">BudgetValue.java:31</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Statement_ace4f80751d303c613e467163913bebf5_html_ace4f80751d303c613e467163913bebf5"><div class="ttname"><a href="../../d1/d5e/classnars_1_1language_1_1Statement_ace4f80751d303c613e467163913bebf5.html#ace4f80751d303c613e467163913bebf5">nars.language.Statement.getSubject</a></div><div class="ttdeci">Term getSubject()</div><div class="ttdoc">Return the first component of the statement. </div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d44/Statement_8java_source.html#l00229">Statement.java:229</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Implication_html"><div class="ttname"><a href="../../da/db6/classnars_1_1language_1_1Implication.html">nars.language.Implication</a></div><div class="ttdoc">A Statement about an Inheritance relation. </div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d1a/Implication_8java_source.html#l00031">Implication.java:31</a></div></div>
</div><!-- fragment -->
<p><div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="../../closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="../../d8/d79/classnars_1_1inference_1_1CompositionalRules_a4e01a00f3a024ecdbd3949fefb803dae_a4e01a00f3a024ecdbd3949fefb803dae_cgraph.svg" width="100%" height="600"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
</p>

<p><div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="../../closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="../../d8/d79/classnars_1_1inference_1_1CompositionalRules_a4e01a00f3a024ecdbd3949fefb803dae_a4e01a00f3a024ecdbd3949fefb803dae_icgraph.svg" width="100%" height="300"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../d7/d81/namespacenars.html">nars</a></li><li class="navelem"><a class="el" href="../../d9/d79/namespacenars_1_1inference.html">inference</a></li><li class="navelem"><a class="el" href="../../d8/d79/classnars_1_1inference_1_1CompositionalRules.html">CompositionalRules</a></li>
    <li class="footer">Generated on Sun Jan 10 2016 18:03:59 for opennars by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.9.1 </li>
  </ul>
</div>
</body>
</html>
